using SqlSugar;

/*
 * @author : xkdong@163.com
 * @date : 2024-3-15
 * @desc : 国家字典
 */
namespace YOUYOU.Models.Entities.DBModels
{
    /// <summary>
    /// 国家字典
    /// </summary>
    [SugarTable("dict_countrydict", TableDescription = "国家字典")]
    public class DictCountrydict
    {
        /// <summary>
        /// 序号
        /// </summary>
        [SugarColumn(ColumnName = "Id" ,IsIdentity = true, IsPrimaryKey = true)]
        public int Id{ get; set; }
        
        /// <summary>
        /// 编码
        /// </summary>
        [SugarColumn(ColumnName = "Code")]
        public string? Code{ get; set; }
        
        /// <summary>
        /// 地区名称
        /// </summary>
        [SugarColumn(ColumnName = "Name")]
        public string? Name{ get; set; }
        
        /// <summary>
        /// 父id
        /// </summary>
        [SugarColumn(ColumnName = "ParentCode")]
        public string? ParentCode{ get; set; }
        
        /// <summary>
        /// 简拼
        /// </summary>
        [SugarColumn(ColumnName = "InputCode")]
        public string? InputCode{ get; set; }
        public string? DzCode { get; set; }
        public string? DzName { get; set; }
        
    }

    public class DictCountrydicts
    {
        /// <summary>
        /// 序号
        /// </summary>
        [SugarColumn(ColumnName = "Id", IsIdentity = true, IsPrimaryKey = true)]
        public int Id { get; set; }

        /// <summary>
        /// 编码
        /// </summary>
        [SugarColumn(ColumnName = "Code")]
        public string? Code { get; set; }

        /// <summary>
        /// 地区名称
        /// </summary>
        [SugarColumn(ColumnName = "Name")]
        public string? Name { get; set; }

        /// <summary>
        /// 父id
        /// </summary>
        [SugarColumn(ColumnName = "ParentCode")]
        public string? ParentCode { get; set; }

        /// <summary>
        /// 简拼
        /// </summary>
        [SugarColumn(ColumnName = "InputCode")]
        public string? InputCode { get; set; }
        public string? DzCode { get; set; }
        public string? DzName { get; set; }

    }
}